package com.ruoyi.web.controller.service;


import com.ruoyi.web.controller.demo.domain.SysEmail;

import java.util.List;

/**
 * sys_emailService接口
 * 
 * @author ruoyi
 * @date 2022-12-22
 */
public interface ISysEmailService
{
    /**
     * 查询sys_email
     *
     * @param id sys_email主键
     * @return sys_email
     */
    public SysEmail selectSysEmailById(Long id);

    /**
     * 查询sys_email列表
     *
     * @param sysEmail sys_email
     * @return sys_email集合
     */
    public List<SysEmail> selectSysEmailList(SysEmail sysEmail);
    public List<SysEmail> selectSysEmailListShow(SysEmail sysEmail);
    public List<SysEmail> selectSysEmailListDraft(SysEmail sysEmail);
    public List<SysEmail> selectSysEmailListDash(SysEmail sysEmail);
    /**
     * 新增sys_email
     *
     * @param sysEmail sys_email
     * @return 结果
     */
    public int insertSysEmail(SysEmail sysEmail);
//    public int insertSysEmailIn(SysEmail sysEmail);
    public int saveSysEmail(SysEmail sysEmail);
    /**
     * 修改sys_email
     *
     * @param sysEmail sys_email
     * @return 结果
     */
    public int updateSysEmail(SysEmail sysEmail);

    /**
     * 批量删除sys_email
     *
     * @param ids 需要删除的sys_email主键集合
     * @return 结果
     */
    public int deleteSysEmailByIds(String ids);

    /**
     * 删除sys_email信息
     *
     * @param id sys_email主键
     * @return 结果
     */
    public int deleteSysEmailById(Long id);


    //发件箱到垃圾箱
    public int outDeleteSysEmailById(Long id);
    //收件箱到垃圾箱
    public int shouDeleteSysEmailById(Long id);
    //还原
    public int backRemove(Long id);
}
